package br.com.datatraffic.sso.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

import lombok.Getter;
import lombok.Setter;

@Entity public class Dominio implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final String TIPO_AUTENTICACAO = "TIPO_AUTENTICACAO";

	@Id @Column(name = "DOMINIO_ID") @GeneratedValue(generator = "DOMINIO_SEQ", strategy = GenerationType.SEQUENCE) @SequenceGenerator(name = "DOMINIO_SEQ", sequenceName = "DOMINIO_SEQ", initialValue = 1, allocationSize = 1) private @Getter @Setter Long id;

	@Column(name = "NOME") private @Getter @Setter String nome;

	@Column(name = "VALOR") private @Getter @Setter String valor;

	@Column(name = "DESCRICAO") private @Getter @Setter String descricao;

	/*
	 * CONSTRUCTORS, EQUALS AND HASHCODE
	 * -----------------------------------------------------------------------------------
	 */

	public Dominio() {
	}

	public Dominio(Long id) {
		this.id = id;
	}

	public Dominio(String nome, String valor, String descricao) {
		this.nome = nome;
		this.valor = valor;
		this.descricao = descricao;
	}

}